package server;

import java.util.ArrayList;
import java.util.List;



public class Usuario{
	
	private String username;
	private List<String> mailbox;

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsername() {
		return username;
	}
	
	public Usuario (String _username)
	{
		setUsername(_username);
		mailbox=new ArrayList<String>();
	}
	
	public List<String> getMails()
	{
		return mailbox;
	}
	
	public void receiveMail(String _mail)
	{
		mailbox.add(_mail);
	}

	public void cleanMailbox()
	{
		mailbox.clear();
	}

}